<template>
    <view>
        <view class="head">
            <uni-icons class="title-icon" type="back" size="50" @click="easyGoBack()"></uni-icons>
            <text class="title">{{ title }}</text>
            <text class="title-right" @click="clickRight()">{{ titleRight }}</text>
        </view>
    </view>
</template>

<script>
import appMixin from "@/utils/appMixin.js"

export default {
    data() {
        return {}
    },
    props: {
        titleRight: {
            type: String,
            default: "",
        },
        title: {
            type: String,
            default: "运费模板",
        },
    },
    methods: {
        clickRight() {
            this.$emit("click-right")
        },
    },
}
</script>

<style lang="scss">
.head {
    background-color: #fff;
    height: 88rpx;
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    .title {
        font-size: 32rpx;
        font-weight: 600;
        line-height: 60rpx;
        margin-left: 8rpx;
    }

    .title-right {
        margin-right: 30rpx;
        color: $app-color-main;
    }

    .title-icon {
        margin-left: 20rpx;
    }
}
</style>
